#ifndef MUTABLE_BUFFER_H
#define MUTABLE_BUFFER_H

#include <esp_types.h>

typedef struct mutable_buffer mutable_buffer_t;

mutable_buffer_t *mutable_buffer_create();

void mutable_buffer_free(mutable_buffer_t *mutable_buffer);

void mutable_buffer_append(mutable_buffer_t *mutable_buffer, const void *data, size_t size);

char* mutable_buffer_get_buffer(mutable_buffer_t *mutable_buffer);

#endif